home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 97 / CD-ROM 97 / CD-ROM 97.iso / internet / ghostzilla / ghsetup.exe / chrome / comm.jar / content / navigator / viewSource.xul < prev   
Encoding:
Extensible Markup Language  |  2002-05-08  |  7.5 KB  |  178 lines

  1. <?xml version="1.0"?> <!-- -*- Mode: HTML -*- --> 
  2. <?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?> 
  3.  
  4. <!-- 
  5.    - The contents of this file are subject to the Mozilla Public
  6.    - License Version 1.1 (the "License"); you may not use this file
  7.    - except in compliance with the License. You may obtain a copy of
  8.    - the License at http://www.mozilla.org/MPL/
  9.    - 
  10.    - Software distributed under the License is distributed on an "AS
  11.    - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  12.    - implied. See the License for the specific language governing
  13.    - rights and limitations under the License.
  14.    - 
  15.    - The Original Code is mozilla.org viewsource frontend.
  16.    - 
  17.    - The Initial Developer of the Original Code is Netscape
  18.    - Communications Corporation.  Portions created by Netscape are
  19.    - Copyright (C) 2000 Netscape Communications Corporation.  All
  20.    - Rights Reserved.
  21.    - 
  22.    - Contributor(s):
  23.    -     Doron Rosenberg (doronr@naboonline.com)
  24.   -->
  25.  
  26. <?xul-overlay href="chrome://navigator/content/navigatorOverlay.xul"?>
  27.  
  28. <!DOCTYPE window [
  29. <!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
  30. %brandDTD;
  31. <!ENTITY % sourceDTD SYSTEM "chrome://navigator/locale/viewSource.dtd" >
  32. %sourceDTD;
  33. <!ENTITY % navigatorDTD SYSTEM "chrome://navigator/locale/navigator.dtd" >
  34. %navigatorDTD;
  35. <!ENTITY % contentAreaCommandsDTD SYSTEM "chrome://communicator/locale/contentAreaCommands.dtd" >
  36. %contentAreaCommandsDTD;
  37. ]>
  38.  
  39. <window id="main-window"
  40.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  41.     onload="onLoadViewSource();"
  42.     contenttitlesetting="true"
  43.     title="&mainWindow.title;" 
  44.     titlemodifier="&mainWindow.titlemodifier;" 
  45.     titlepreface="&mainWindow.preface;"
  46.     titlemenuseparator ="&mainWindow.titlemodifierseparator;"  
  47.     windowtype="navigator:view-source"
  48.     width="640" height="480"
  49.     screenX="10" screenY="10"
  50.     persist="screenX screenY width height sizemode">
  51.  
  52.   <script type="application/x-javascript" src="chrome://global/content/nsJSSupportsUtils.js"/>
  53.   <script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>
  54.   <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/>
  55.   <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/>
  56.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaDD.js"/>
  57.   <script type="application/x-javascript" src="chrome://navigator/content/browser.js"/>
  58.   <script type="application/x-javascript" src="chrome://navigator/content/viewsource.js"/>
  59.   <script type="application/x-javascript" src="chrome://communicator/content/findUtils.js"/>
  60.   <script type="application/x-javascript" src="chrome://communicator/content/contentAreaUtils.js"/>
  61.  
  62.   <commandset id="commands">    
  63.     <commandset id="globalEditMenuItems"/>
  64.     <commandset id="selectEditMenuItems"/>
  65.     <commandset id="clipboardEditMenuItems"/>
  66.     <commandset id="viewSourceMenuItems">
  67.       <command id="cmdWrapLongLines" oncommand="wrapLongLines()"/>
  68.       <command id="cmd_close" oncommand="ViewSourceClose()"/>
  69.       <command id="cmd_savePage" oncommand="ViewSourceSavePage();"/>
  70.     </commandset>
  71.   </commandset>
  72.     
  73.   <stringbundleset id="stringbundleset">
  74.     <stringbundle id="findBundle" src="chrome://global/locale/finddialog.properties"/>
  75.   </stringbundleset>
  76.  
  77.   <!-- keys are appended from the overlay -->
  78.   <keyset id="viewSourceKeys">
  79.  <!-- File Menu -->
  80.     <key id="key_newNavigator"/>
  81.     <key id="key_newBlankPage"/>
  82.     <key id="key_savePage"       key="&savePageCmd.commandkey;" command="cmd_savePage" modifiers="accel"/>
  83.     <key id="key_editPage"       key="&editPageCmd.commandkey;" command="Browser:EditPage" modifiers="accel"/>
  84.     <key id="printKb"            key="&printCmd.commandkey;" command="Browser:Print"  modifiers="accel"/>
  85.     <key id="key_close"/>
  86.  
  87.     <!-- Edit Menu -->
  88.     <key id="key_undo"/>
  89.     <key id="key_redo"/>
  90.     <key id="key_cut"/>
  91.     <key id="key_copy"/>
  92.     <key id="key_paste"/>
  93.     <key id="key_delete"/>
  94.     <key id="key_selectAll"/>
  95.     <key id="key_find"              key="&findOnCmd.commandkey;" command="Browser:Find" modifiers="accel"/>
  96.     <key id="key_findAgain"         key="&findAgainCmd.commandkey;" command="Browser:FindAgain" modifiers="accel"/>
  97.     <keyset id="viewZoomKeys"/>
  98.   </keyset>
  99.  
  100.   <!-- context menu -->
  101.   <popupset id="viewSourceContextSet">
  102.     <popup id="viewSourceContextMenu">
  103.       <menuitem label="&findNextCmd.label;" accesskey="&findNextCmd.accesskey;"  command="Browser:FindAgain"/>
  104.       <menuseparator/>
  105.       <menuitem id="menu_copy_cm" label="©Cmd.label;" accesskey="©Cmd.accesskey;" command="cmd_copy"/>
  106.       <menuseparator/>
  107.       <menuitem id="menu_selectAll_cm" label="&selectAllCmd.label;" accesskey="&selectAllCmd.accesskey;" command="cmd_selectAll"/>
  108.     </popup>
  109.   </popupset>
  110.  
  111.   <!-- Menu --> 
  112.   <toolbox>
  113.   <menubar id="zmain-menubar">
  114.     <menu id="menu_File">
  115.       <menupopup id="filemenu-popup">
  116.         <menu id="menu_New">
  117.           <menupopup id="menu_NewPopup">
  118.             <menuitem id="menu_newNavigator" command="cmd_newNavigator"/>
  119.             <menuitem id="menu_newEditor"    command="cmd_newEditor"/>
  120.           </menupopup>
  121.         </menu>
  122.         
  123.         <menuseparator/>
  124.  
  125.         <menuitem id="menu_close"/>
  126.         <menuitem label="&savePageCmd.label;" accesskey="&savePageCmd.accesskey;" key="key_savePage" command="cmd_savePage"/>
  127.         <menuitem id="savepage" label="&saveFrameCmd.label;" accesskey="&saveFrameCmd.accesskey;" oncommand="ViewSourceSavePage();" hidden="true"/>
  128.         <menuseparator/>
  129.         <menuitem label="&editPageCmd.label;" accesskey="&editPageCmd.accesskey;" key="key_editPage" oncommand="ViewSourceEditPage();"/>
  130.  
  131.        <menuseparator/>
  132.         <menuitem label="&printCmd.label;" accesskey="&printCmd.accesskey;" key="printKb" command="Browser:Print"/>     
  133. <!--    <menuitem accesskey="&printPreviewCmd.accesskey;" observes="Browser:PrintPreview"/> -->
  134.       </menupopup>
  135.     </menu>
  136.  
  137.     <menu id="menu_Edit">
  138.       <menupopup>
  139.         <menuitem id="menu_undo"/>   
  140.         <menuitem id="menu_redo"/>
  141.         <menuseparator/>
  142.         <menuitem id="menu_cut"/>
  143.         <menuitem id="menu_copy"/>
  144.         <menuitem id="menu_paste"/>
  145.         <menuitem id="menu_delete"/>
  146.         <menuseparator/>
  147.         <menuitem id="menu_selectAll"/>
  148.         <menuseparator /> 
  149.         <menuitem id="menu_find" label="&findOnCmd.label;" accesskey="&findOnCmd.accesskey;" key="key_find" command="Browser:Find"/>
  150.         <menuitem id="menu_findAgain" label="&findAgainCmd.label;" accesskey="&findAgainCmd.accesskey;" key="key_findAgain" command="Browser:FindAgain"/>
  151.       </menupopup>
  152.     </menu>
  153.      
  154.     <menu id="menu_view" accesskey="&viewMenu.accesskey;" label="&viewMenu.label;">
  155.       <menupopup>
  156.         <menu id="menu_textZoom"/>  
  157.         <menuseparator/>
  158.      <!--   <menuitem accesskey="&pageInfoCmd.accesskey;" label="&pageInfoCmd.label;" key="key_viewInfo" observes="View:PageInfo"/>
  159.         <menuseparator id="file_moduleSeparator"/>-->
  160.         <menu id = "charsetMenu"/>
  161.         <menuitem id="menu_wrapLongLines" label="&menu_wrapLongLines.title;" accesskey="&menu_wrapLongLines.accesskey;" type="checkbox" command="cmdWrapLongLines"/>
  162.       </menupopup>
  163.     </menu>
  164.  
  165.     <menu id="menu_Help"/>
  166.   </menubar>  
  167.   </toolbox>
  168.  
  169.   <vbox id="appcontent" flex="1"
  170.        ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
  171.  
  172.     <browser id="content" type="content-primary" name="content" src="about:blank" flex="1"
  173.              context="viewSourceContextMenu"/>
  174.  
  175.   </vbox> 
  176.  
  177. </window>
  178.